package com.cnb.telepathytalk.dto;

public class MsgDTO implements InterfaceDTO {
	public static final int STATE_PROGRESS = 0;
	public static final int STATE_COMPLETE = 1;
	public static final int STATE_INPUT = 2;
	public static final int STATE_OUTPUT = 3;
	public static final int STATE_IMAGE= 5;
	public static final int STATE_VIDEO= 6;
	public static final int STATE_ETC= 7;

	public static final int TYPE_TEXT = 0;
	public static final int TYPE_IMAGE = 1;

	private int roomIndex;
	private int sendUcode;
	private int sendUserPicture;
	private int msgIndex;
	private String sendTime;
	private int chatState;
	private int chatType;
	private int nonReadUser;
	private int nonReadMe;
	private int chatLength;
	private String msg;

	public MsgDTO(int roomIndex, int sendUcode, int msgIndex, String sendTime, int chatState, int chatType, int nonReadUser, int nonReadMe,
			int chatLength, String msg) {
		super();
		this.roomIndex = roomIndex;
		this.sendUcode = sendUcode;
		this.msgIndex = msgIndex;
		this.sendTime = sendTime;
		this.chatState = chatState;
		this.chatType = chatType;
		this.nonReadUser = nonReadUser;
		this.nonReadMe = nonReadMe;
		this.chatLength = chatLength;
		this.msg = msg;
	}

	public MsgDTO() {
		super();
	}

	public int getRoomIndex() {
		return roomIndex;
	}

	public void setRoomIndex(int roomIndex) {
		this.roomIndex = roomIndex;
	}

	public int getSendUcode() {
		return sendUcode;
	}

	public void setSendUserPicture(int sendUserPicture) {
		this.sendUserPicture = sendUserPicture;
	}

	public int getSendUserPicture() {
		return sendUserPicture;
	}

	public void setSendUcode(int sendUcode) {
		this.sendUcode = sendUcode;
	}

	public int getMsgIndex() {
		return msgIndex;
	}

	public void setMsgIndex(int msgIndex) {
		this.msgIndex = msgIndex;
	}

	public String getSendTime() {
		if (sendTime == null)
			return "";
		return sendTime;
	}

	public void setSendTime(String sendTime) {
		this.sendTime = sendTime;
	}

	public int getChatState() {
		return chatState;
	}

	public void setChatState(int chatState) {
		this.chatState = chatState;
	}

	public int getChatType() {
		return chatType;
	}

	public int getNonReadUser() {
		return nonReadUser;
	}

	public void setNonReadUser(int nonReadUser) {
		this.nonReadUser = nonReadUser;
	}

	public int getNonReadMe() {
		return nonReadMe;
	}

	public void setNonReadMe(int nonReadMe) {
		this.nonReadMe = nonReadMe;
	}

	public void setChatType(int chatType) {
		this.chatType = chatType;
	}

	public int getChatLength() {
		return chatLength;
	}

	public void setChatLength(int chatLength) {
		this.chatLength = chatLength;
	}

	public String getMsg() {
		if (msg == null)
			return "";
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
}